//function main(){
//    console.log("脚本加载开始......")
//    Java.perform(function(){
//        console.log("内部java注入开始......")
////        var cls = Java.use('com.yjkj.chainup.new_version.activity.NewMainActivity')
////        console.log("定位类成功......")
////        cls.onDestroy.overload = function(){
//////            var ret_value = this.fun(x,y);
//////            return ret_value
//////return false;
////        }
//
////        Java.choose('com.yjkj.chainup.new_version.activity.NewMainActivity', {
////                    onMatch: function(instance){
////                        console.log("instance found", instance)
//////                        instance.onDestroy()
////                    },
////                    onComplete: function(){
////                        console.log('search onComplete')
////                    }
////                })
//    })
//}
//setImmediate(main)



Java.perform(function(){
//frida -U -f com.asiainfo.app --no-pause
//    var cls = Java.use('com.wepie.ivy.login.PhoneLoginActivityV2');  // package名：com.myapp.module.account.ui.activity  类名：LoginActivity
//    var cls = Java.use('com.secneo.apkwrapper.AW');  // package名：com.myapp.module.account.ui.activity  类名：LoginActivity
//     cls.p3.implementation = function () {
        console.log("拦截了");
//     }
    // loginSuccess 为方法名 implementation是固定写法,function为js代码

//     console.log("ddd");
//     console.log(cls.themeNight);

//  var cls = Java.use('com.wepie.ivy.login.PhoneLoginActivityV2');  // package名：com.myapp.module.account.ui.activity  类名：LoginActivity
//
//    // loginSuccess 为方法名 implementation是固定写法,function为js代码



//
//    cls.logout.implementation = function ( ) {
//
//        console.log('checkout');
//        console.log('hook success');
//        var strToSign = Hook.strToSign(cls);
//        console.log(strToSign); //输出需要的参数
//
////        console.log(this.loginSuccess);
////
////        var value = this.loginSuccess(a,b);
//
//    };

});